'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Absence = app.model.define('absence', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    uid: INTEGER,
    userName: STRING,
    startDate: STRING,
    endDate: STRING,
    remarks: STRING,
  });

  return Absence;
};
